/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.toools.gwt.wmc.server.dao;

import java.util.Collection;
import org.toools.gwt.wmc.jpa.Application;

/**
 *
 * @author roman schoenbichler
 */
public interface IApplicationDAO {
    Application getApplicationByID( Integer id );
    Boolean belongsTo( Integer id, Integer accountid );

    Collection<Application> getApplications();
    Collection<Application> getApplications( Integer accountid );

    Application create( Application a );
    Boolean update( Application a );
    Boolean delete( Application a );
}
